package com.zhouyu.mongo.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * Description: 考试试卷
 *
 * @author: zhou yu
 * @create: 2021-07-15 10:16
 */
@Document("t_exam_paper")
public class ExamPaper implements Serializable {
    @Id
    private String id;
    private int type;
    private LocalDateTime createTime;
    private String name;
    private List<ExamQuestion> examQuestion;
    private ExamUser examUser;

    public List<ExamQuestion> getExamQuestion() {
        return examQuestion;
    }

    public void setExamQuestion(List<ExamQuestion> examQuestion) {
        this.examQuestion = examQuestion;
    }

    public ExamUser getExamUser() {
        return examUser;
    }

    public void setExamUser(ExamUser examUser) {
        this.examUser = examUser;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
